package com.liuweiheng.cloud.thread;

/**
 * 实现线程方法：集成Thread类
 * @author lwh
 * @since 2021/5/10
 */
public class MyThread extends Thread{
    @Override
    public void run() {
        System.out.println("线程" + Thread.currentThread().getName() + "启动");
    }


    public static void main(String[] args) {
        Thread t = new MyThread();
        t.start();
    }
}
